define [
	'jquery',
	'bootstrap_popover',
], ($) ->
	init: ->
		Control = $('#MainContent_Login').popover(
			delay: { show: 500, hide: 100 }
			#title: "E-mail validation"
			content: "E-mail address cannot be empty"
			trigger: 'manual'
		)
		Control.on('focusout',->
			unless Control.val().length then Control.popover('show') else Control.popover('hide')
		)
